@layout('layouts.clearly')

@section('content')
<div id="panel-nav" class="w300 fl-left">
    <div class="panel-nav-group">
        <h3>Tổng quan</h3>
        <ul class="panel-nav-items">
            <li><a href="{{ asset('user') }}">Tài khoản</a></li>

            @if (MyAuth::privileges('admin'))
            <li><a href="{{ action('admin.site@index') }}">Cấu hình trang</a></li>
            @endif
        </ul>
    </div>

    @if (MyAuth::privileges('owner'))
    <div class="panel-nav-group">
        <h3>Nhà trọ</h3>
        <ul class="panel-nav-items">
            <li><a href="{{ action('house@manage') }}">Tất cả nhà trọ</a></li>
            <li><a href="{{ action('house@post') }}">Thêm nhà trọ mới</a></li>
        </ul>
    </div>
    <!-- owner privilege required -->
    @endif

    <div class="panel-nav-group">
        <h3>Tin tức</h3>
        <ul class="panel-nav-items">
            <li><a href="#">Danh sách</a></li>
            <li><a href="{{ action('news@post') }}">Đăng tin</a></li>
        </ul>
    </div>

</div>

<div id="panel-content" class="w640 fl-right">
    @yield('panel-content')
</div>
@endsection